// import type { AddressParams, AddressItem } from '@/types/member'
import { http } from '@/utils/http'
import type { PageData } from '@/types/global'
import type {
  IAccountParams,
  IZyRechargePlanDTO,
  AccountLogPageParam,
  ZyAccountLogDTO,
} from '@/types/valuecenter'
/**
 * 添加收货地址
 * @param data 请求参数
 */
export const rechargeplanAPI = (data: any) => {
  return http<IZyRechargePlanDTO>({
    method: 'GET',
    url: '/sys/app/account/rechargeplan',
    data: data,
  })
}
export const accountSaveAPI = (data: IAccountParams) => {
  return http({
    method: 'POST',
    url: '/sys/app/account/accountSave',
    data,
  })
}

export const accountLogAppPageAPI = (data: AccountLogPageParam) => {
  return http<PageData<ZyAccountLogDTO[]>>({
    method: 'POST',
    url: '/sys/app/account/accountlog/appPage',
    data,
  })
}
